package com.likan.chqjtgc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 系统操作日志表
 * </p>
 *
 * @author lxh
 * @since 2021-01-10
 */
@TableName("BASIC_OPERAT_LOG")
@ApiModel(value="BasicOperatLog对象", description="系统操作日志表")
public class BasicOperatLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "操作类型 字典维护")
    @TableField("TYPE")
    private Integer type;

    @ApiModelProperty(value = "用户ID")
    @TableField("USER_ID")
    private String userId;

    @ApiModelProperty(value = "参数")
    @TableField("PARAMS")
    private String params;

    @ApiModelProperty(value = "客户端IP")
    @TableField("IP")
    private String ip;

    @ApiModelProperty(value = "地点/地址")
    @TableField("ADDRESS")
    private String address;

    @ApiModelProperty(value = "登录浏览器")
    @TableField("BROWSER")
    private String browser;

    @ApiModelProperty(value = "异常信息")
    @TableField("EXCEPTION")
    private String exception;

    @ApiModelProperty(value = "1 成功 0 失败")
    @TableField(value = "STATUS", fill = FieldFill.INSERT)
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField(value = "CREATE_USER_ID", fill = FieldFill.INSERT)
    private String createUserId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public String getBrowser() {
        return browser;
    }

    public void setBrowser(String browser) {
        this.browser = browser;
    }
    public String getException() {
        return exception;
    }

    public void setException(String exception) {
        this.exception = exception;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    @Override
    public String toString() {
        return "BasicOperatLog{" +
            "id=" + id +
            ", type=" + type +
            ", userId=" + userId +
            ", params=" + params +
            ", ip=" + ip +
            ", address=" + address +
            ", browser=" + browser +
            ", exception=" + exception +
            ", status=" + status +
            ", createTime=" + createTime +
            ", createUserId=" + createUserId +
        "}";
    }
}
